﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AgentPWMacList.aspx.cs" Inherits="IHISCETeim.Web.AgentSys.PWMgr.AgentPWMacList" %>

<form id="pagerForm" method="post" action="PWMgr/AgentPWMacList.aspx">
<input type="hidden" name="searchAgentName" value="<%=searchAgentName %>" />
<input type="hidden" name="SerialNumber" value="<%=SerialNumber %>" />
    <input type="hidden" name="IntoDateFrom" value="<%=IntoDateFrom %>" />
<input type="hidden" name="IntoDateTo" value="<%=IntoDateTo %>" />
<input type="hidden" name="orderField" value="<%=orderField %>" />
<input type="hidden" name="orderDirection" value="<%=orderDirection %>" />
<input type="hidden" name="pageNum" value="1" />
<input type="hidden" name="numPerPage" value="<%=numPerPage %>" />
</form>
<form id="form1" runat="server" method="post" action="PWMgr/AgentPWMacList.aspx" onsubmit="return navTabSearch(this);">
<div class="pageContent"> 
    <div class="searchBar">
     
        <table class="searchContent">
            <tr>
                <% if(HasPower(IHISCETeim.Web.Permission.经销商平台_公司人员)) { %>
            
                <td>经销商：</td>
                <td colspan="5">
                    <input name="searchAgentName" type="text" value="<%=searchAgentName %>"  />
                </td>
            
            <%} %>                
                <td>
                    机号:
                    </td>
                    <td>
                    <input type="text" name="SerialNumber" value="<%=SerialNumber %>" />
                    </td> 
                 <td>
                   交机日期从：
                </td>
                <td >
                   <input name="IntoDateFrom" type="text" size=8 value="<%=IntoDateFrom %>"  class="date"/>
                </td>
                <td>
                   到：
                </td>
                <td>
                   <input name="IntoDateTo" type="text" size=8 value="<%=IntoDateTo %>"  class="date"/>
                </td>                  
                <td>
                    <div class="subBar">
                        <ul>
                            <li>
                                <div class="buttonActive">
                                    <div class="buttonContent">
                                        <button type="submit">
                                            检索</button></div>
                                </div>
                            </li>
                        </ul>
                    </div>
                </td>
            </tr>                        
        </table>
    </div>
    <div class="panelBar">                    
        <ul class="toolBar">            
             <% if (HasPower(IHISCETeim.Web.Permission.导出))
                {%>
            <li><a class="icon" href="PWMgr/ExportAgentPWMacList.aspx?orderField=<%=orderField %>&orderDirection=<%=orderDirection %>&searchAgentName=<%= Server.UrlEncode( searchAgentName) %>&SerialNumber=<%=SerialNumber %>" target="_blank" title="确定要导出吗?"><span>导出</span></a></li>
            <%} %>
        </ul>
    </div>
                
    <asp:repeater id="rpMenu" runat="server">
        <HeaderTemplate>
        <table class="list" width="1950" layoutH="80">                   
        <thead>
            <tr  >                   
                <th  orderField="SerialNumber" class="asc" width="80">
                    机号
                </th>
                <th orderField="IntoDate" class="asc" width="80">
                    交机日期
                </th>
                <th  align="center"  width="90">
                    客户
                </th>  
                <th width="90">
                    经销商
                </th>
                 <th width="90">
                    服务担当
                </th>
               
                <th align="center" width="100">
                    2250H
                </th>
                <th align="center" width="100">
                    2500H
                </th> 
                <th align="center" width="100">
                    2750H
                </th> 
                <th align="center" width="100">
                    3000H
                </th>
                 <th align="center" width="100">
                    3250H
                </th>
                <th align="center" width="100">
                    3500H
                </th> 
                <th align="center" width="100">
                    3750H
                </th> 
                <th align="center" width="100">
                    4000H
                </th>
                 <th align="center" width="100">
                    4250H
                </th>
                <th align="center" width="100">
                    4500H
                </th> 
                <th align="center" width="100">
                    4750H
                </th> 
                <th align="center" width="100">
                    5000H
                </th>
                <th  width="100">完成率</th> 
                                   
            </tr>
        </thead>
        <tbody>
        </HeaderTemplate>
        <ItemTemplate>
            <tr target="sid_user" rel="<%# Eval("PWUMKID") %>"> 
				<td>
                    <%# Eval("SerialNumber") %>
                </td>
                    <td >
                    <%# Eval("IntoDate") is DBNull?"": Convert.ToDateTime(Eval("IntoDate")).ToShortDateString()%>
                </td>  
				<td><%# Eval("CustomerName")%></td>
			    <td><%# Eval("AgentName")%></td>
                <td ><%# Eval("SrvActRealName")%></td>
                
                <td ><%# GetShowStr( Eval("PW2250"),Eval("PW2250Str"),2250,Eval("SerialNumber"),Eval("PWUMKID")) %></td>
                <td ><%# GetShowStr( Eval("PW2500"),Eval("PW2500Str"),2500,Eval("SerialNumber"),Eval("PWUMKID")) %></td>
                <td ><%# GetShowStr( Eval("PW2750"),Eval("PW2750Str"),2750,Eval("SerialNumber"),Eval("PWUMKID")) %></td>
                <td ><%# GetShowStr( Eval("PW3000"),Eval("PW3000Str"),3000,Eval("SerialNumber"),Eval("PWUMKID")) %></td>
                <td ><%# GetShowStr( Eval("PW3250"),Eval("PW3250Str"),3250,Eval("SerialNumber"),Eval("PWUMKID")) %></td>
                <td ><%# GetShowStr( Eval("PW3500"),Eval("PW3500Str"),3500,Eval("SerialNumber"),Eval("PWUMKID")) %></td>
                <td ><%# GetShowStr( Eval("PW3750"),Eval("PW3750Str"),3750,Eval("SerialNumber"),Eval("PWUMKID")) %></td>
                <td ><%# GetShowStr( Eval("PW4000"),Eval("PW4000Str"),4000,Eval("SerialNumber"),Eval("PWUMKID")) %></td>
                <td ><%# GetShowStr( Eval("PW4250"),Eval("PW4250Str"),4250,Eval("SerialNumber"),Eval("PWUMKID")) %></td>
                <td ><%# GetShowStr( Eval("PW4500"),Eval("PW4500Str"),4500,Eval("SerialNumber"),Eval("PWUMKID")) %></td>
                <td ><%# GetShowStr( Eval("PW4750"),Eval("PW4750Str"),4750,Eval("SerialNumber"),Eval("PWUMKID")) %></td>
                <td ><%# GetShowStr( Eval("PW5000"),Eval("PW5000Str"),5000,Eval("SerialNumber"),Eval("PWUMKID")) %></td>
                <td >
                    <%# GetPer(Eval("CompleteNum"),Eval("NeedCompleteNum"))%>%         
                </td>   
                                           
			</tr>
        </ItemTemplate>
        <FooterTemplate>
            <tr>
                <td colspan="5" align="right">合计:</td>
                <td colspan="13" class="">
                    <b style="color:red;">需保养次数:<%=sumdt.Rows[0]["AllNeedCompleteNum"]%>,已保养次数:<%=sumdt.Rows[0]["ALLCompleteNum"]%></b>
                    总保养完成率：  <%=GetPer(sumdt.Rows[0]["ALLCompleteNum"],sumdt.Rows[0]["AllNeedCompleteNum"])%>%
                </td>
            </tr>
        </tbody>
    </table>
    </FooterTemplate> 
    </asp:repeater>
    <div class="panelBar">
        <div class="pages">
            <span>显示</span>
            <select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
                <%=SetnumPerPage() %>
            </select>
            <span>条，共<%=TotalCount%>条</span>
        </div>
        <div class="pagination" targettype="navTab" totalcount="<%=TotalCount%>" numperpage="<%=numPerPage %>"
            pagenumshown="10" currentpage="<%=pageNum %>">
        </div>
    </div>            
</div>
</form>
